
package com.xoa.service.nccloud.impl;
import com.xoa.dao.ncclound.NccHrdeptMapper;
import com.xoa.model.nccloud.NccHrdept;
import com.xoa.service.nccloud.NccHrdeptService;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class NccHrdeptServiceImpl implements NccHrdeptService {

    @Resource
    private NccHrdeptMapper nccHrdeptMapper;

    public NccHrdept getNccHrdeptById(Long id)throws Exception{
        return nccHrdeptMapper.getNccHrdeptById(id);
    }

    public List<NccHrdept>	getNccHrdeptListByMap(Map<String,Object> param)throws Exception{
        return nccHrdeptMapper.getNccHrdeptListByMap(param);
    }

    public Integer getNccHrdeptCountByMap(Map<String,Object> param)throws Exception{
        return nccHrdeptMapper.getNccHrdeptCountByMap(param);
    }

    public Integer itriptxAddNccHrdept(NccHrdept nccHrdept)throws Exception{

            return nccHrdeptMapper.insertNccHrdept(nccHrdept);
    }

    public Integer itriptxModifyNccHrdept(NccHrdept nccHrdept)throws Exception{

        return nccHrdeptMapper.updateNccHrdept(nccHrdept);
    }

    public Integer itriptxDeleteNccHrdeptById(Long id)throws Exception{
        return nccHrdeptMapper.deleteNccHrdeptById(id);
    }


}
